// 自动生成模板SmsHomeAdv
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// smsHomeAdv表 结构体  SmsHomeAdv
type SmsHomeAdv struct {
	Id          *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                   //id
	Name        *string    `json:"name" form:"name" gorm:"comment:名字;column:name;size:100;"`                       //名字
	Pic         *string    `json:"pic" form:"pic" gorm:"comment:图片地址;column:pic;size:500;"`                        //图片地址
	StartTime   *time.Time `json:"startTime" form:"startTime" gorm:"comment:开始时间;column:start_time;"`              //开始时间
	EndTime     *time.Time `json:"endTime" form:"endTime" gorm:"comment:结束时间;column:end_time;"`                    //结束时间
	Status      *bool      `json:"status" form:"status" gorm:"comment:状态;column:status;"`                          //状态
	ClickCount  *int       `json:"clickCount" form:"clickCount" gorm:"comment:点击数;column:click_count;size:10;"`    //点击数
	Url         *string    `json:"url" form:"url" gorm:"comment:广告详情连接地址;column:url;size:500;"`                    //广告详情连接地址
	Note        *string    `json:"note" form:"note" gorm:"comment:备注;column:note;size:500;"`                       //备注
	Sort        *int       `json:"sort" form:"sort" gorm:"comment:排序;column:sort;size:10;"`                        //排序
	PublisherId *int       `json:"publisherId" form:"publisherId" gorm:"comment:发布者;column:publisher_id;size:19;"` //发布者
	AuthId      *int       `json:"authId" form:"authId" gorm:"comment:审核者;column:auth_id;size:19;"`                //审核者
}

// TableName smsHomeAdv表 SmsHomeAdv自定义表名 sms_home_adv
func (SmsHomeAdv) TableName() string {
	return "sms_home_adv"
}

type SmsHomeAdvRepo interface {
}

type SmsHomeAdvUsecase struct {
	repo SmsCouponRepo
	log  *log.Helper
}

func NewSmsHomeAdvUsecase(repo GreeterRepo, logger log.Logger) *SmsHomeAdvUsecase {
	return &SmsHomeAdvUsecase{repo: repo, log: log.NewHelper(logger)}
}
